/*
 *  SoundEngine.h
 *  GLRender
 *
 *  Created by Patrick zulian on 5/5/10.
 *  Copyright 2010 University  of Lugano. All rights reserved.
 *
 */

#ifndef SOUND_ENGINE_H
#define SOUND_ENGINE_H

#include <QSound>
#include <map>
#include <QString>

class SoundEngine  {
private:
	std::map<QString, QString> sounds;
	QSound music;
	bool soundEnabled;
	
public:
	SoundEngine();
	
	void play(const QString &name);
	
	void addSound(const QString &name, const QString &path);
	
	void toggleSound();
	void playMusic();
	
	void stopMusic();
	
	static SoundEngine * INSTANCE;
	static SoundEngine * getInstance();
};



#endif
